package com.hoshiicloud.goods.service;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.goods.param.goods.GoodsReleaseSpuParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * @author linjx on 2019/7/31
 */
public interface GoodsReleaseService {

    /**
     * 文件上传
     */
    Response uploadFile(MultipartFile file);

    /**
     * 查询与商品发布相关的信息
     */
    Map<String, Object> queryMessage(Long categoryId, Map<String, Object> myMap);

    /**
     * 发布商品
     */
    Boolean saveGoods( GoodsReleaseSpuParam goodsReleaseSpuParam);

    /**
     * 获得需要编辑的商品信息
     */
    GoodsReleaseSpuParam getNeedEditGoods(Map<String, Object> map);

    /**
     *  商品编辑
     */
    Boolean editGoods(GoodsReleaseSpuParam param);

    /**
     * 商品编辑并且同步到分店
     */
    Boolean editAllGoods(GoodsReleaseSpuParam param);


}
